package per.hx.bs.config.shiro;

import org.apache.shiro.authz.UnauthorizedException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author HuXing
 * @date 2018/4/28  11:53
 */
@ControllerAdvice
public class ShiroViewException {

    @ExceptionHandler(UnauthorizedException.class)
    public String ss() {
        return "redirect:/403";
    }
}
